﻿using Inovout.Cloud.Applications.Security.Models;
using Inovout.Services;
using NHibernate.Criterion;

namespace Inovout.Cloud.Applications.Security.Services
{
    public class PublicApiAccessCredentialService : RepositoryService<PublicApiAccessCredential>
    {
        public PublicApiAccessCredential FindByApiKey(string apiKey)
        {
            return base.Repository.Find(Restrictions.Eq("ApiKey", apiKey));
        }
    }
}
